﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TTEngine
{
    public class DamageExpressionList : List<DamageExpression>
    {
        //constructor
        public DamageExpressionList(string s)
        {
            string[] tokens = s.Split(';');
            foreach (string token in tokens)
            {
                DamageExpression de = new DamageExpression(token);
                this.Add(de);
            }
        }

        //damage description
        public string DamageDescription
        {
            get
            {
                return this[0].DamageDescription;
            }
        }
    }
}
